package com.leadingsoft.pwxk.converter;

import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.PermitApplyMonthDto;
import com.leadingsoft.pwxk.model.PermitApplyMonth;

@Component
public class PermitApplyMonthConverster extends AbstractConverter<PermitApplyMonth, PermitApplyMonthDto> {

	@Override
	protected PermitApplyMonthDto toDtoActual(PermitApplyMonth model) {
		PermitApplyMonthDto dto = new PermitApplyMonthDto();

		dto.setDataid(model.getDataid());
		dto.setId(model.getId());
		dto.setMonthtype(model.getMonthtype());
		dto.setSqeightmonth(model.getSqeightmonth());
		dto.setSqelevenmonth(model.getSqelevenmonth());
		dto.setSqfivemonth(model.getSqfivemonth());
		dto.setSqfourmonth(model.getSqfourmonth());
		dto.setSqmonthhj(model.getSqmonthhj());
		dto.setSqninemonth(model.getSqninemonth());
		dto.setSqonemonth(model.getSqonemonth());
		dto.setSqsevenmonth(model.getSqsevenmonth());
		dto.setSqsixmonth(model.getSqsixmonth());
		dto.setSqsevenmonth(model.getSqsevenmonth());
		dto.setSqtenmonth(model.getSqtenmonth());
		dto.setSqthreemonth(model.getSqthreemonth());
		dto.setSqtwelfmonth(model.getSqtwelfmonth());
		dto.setSqtwomonth(model.getSqtwomonth());
		dto.setSqyear(model.getSqyear());
		dto.setWrwid(model.getWrwid());
		dto.setWrwname(model.getWrwname());
		return dto;
	}

	@Override
	public void copyProperties(PermitApplyMonth model, PermitApplyMonthDto dto) {

	}

}
